﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ForgetTraffic.DAL.Conctracts;
using ForgetTraffic.DataModel;
using StructureMap;

namespace ForgetTraffic.DAL.EntitiesManagers
{
    public class CoordinatesManager
    {
        private static IRepository<tblCoordinates> _repository
        {
            get { return ObjectFactory.GetInstance<IRepository<tblCoordinates>>(); }
        }


        public static List<tblCoordinates> GetCoordinates(double longitude, double latitude)
        {
            return _repository.Find(x => x.Latitude == latitude && x.Longitude == longitude).ToList();
        }

    }
}
